<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model app\models\SchoolinfoModel */

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => '学籍信息', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="schoolinfo-model-view">



    <p>
        <?= Html::a('修改', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('删除', ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>
    </p>
<?php if($model->stu_type==0)
            			$stu_type='本科生';
    		elseif ($model->stu_type==1)
    					$stu_type='硕士研究生';
    					else 
    						$stu_type='博士研究生';?>
   
 <?php if($model->status==0)
            		$status='在读';
    		elseif ($model->status==1)
    				$status='休学';
    					elseif($model->status==2)
    					$status='退学';
    					elseif($model->status==3)
    					$status='保留入学资格';
    					elseif($model->status==4)
    					$status='毕业';
    					elseif($model->status==5)
    					$status='肄业';
    					elseif($model->status==7)
    					$status='在读（在外校交流）';
    					elseif($model->status==8)
    					$status='在本校交流学习';
    					elseif($model->status==9)
    					$status='在本校交流学习结束';
    					else
    					$status='开除';?> 						
    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
           // 'id',
            'stu_id',
        		'name',
            'enroll_time',
                        [                     
            'label' => '学生类别',
            'value' => $stu_type,
        ],
            'major_name',
            'class_name',
        		[
        		'label' => '学籍状态',
        		'value' => $status,
        		],
            
        ],
    ]) ?>

</div>
